package mediadisplay.timeline 
{
	import flash.display.Sprite;
	/**
	 * ...
	 * @author ...
	 */
	public class TimelineOverviewMarker extends Sprite
	{
		
		public var start:Number;
		public var stop:Number;
		public var content:String;
		public var color:uint;
		public var focusedMarker:TimelineFocusedMarker;
		public var length:Number;
		public var index:int;
		public var ignore:Boolean;
		
		public function TimelineOverviewMarker(index:int, length:Number, content:String, start:Number, stop:Number, color:uint, ignore:Boolean) 
		{
			this.index = index;
			this.content = content;
			this.start = start;
			this.stop = stop;
			this.color = color;
			this.length = length;
			this.ignore = ignore;
			
			graphics.clear();
			graphics.lineStyle(1, 0xaaaaaa);
			graphics.beginFill(color);
			graphics.drawRect(0, 0, length, 8);
			graphics.endFill();
		}
		public function draw(scale:Number):void {
			length = (stop - start) * scale;
			//trace("start: " + start + " stop: " + stop);
			graphics.clear();
			graphics.lineStyle(1, 0xaaaaaa);
			graphics.beginFill(color);
			graphics.drawRect(0, 0, length, 8);
			graphics.endFill();
		}
	}

}